import Vue from 'vue'
import Router from 'vue-router'
import biddingList from 'components/waybill/biddingList'
import WaybillDetail from 'components/waybill/WaybillDetail'
import TransportList from 'components/transport/transportList'
import TransportDetail from 'components/transport/transportDetail'
import Dispatch from 'components/transport/dispatch'
import Receipt from 'components/transport/receipt'
import ReceiptUpload from 'components/transport/receiptUpload'
import ReceiptCarrier from 'components/transport/receiptCarrier'
import Rank from 'components/rank/rank'
import Settlement from 'components/settlement/settlement'
import SettlementDetail from 'components/settlement/settlementDetail'
import Invoice from 'components/settlement/invoice'
import Mine from 'components/mine/mine'
import AboutUs from 'components/mine/aboutUs'
import Vehicle from 'components/vehicle/vehicle'
import CompanyInfo from 'components/company/companyInfo'
import Audit from 'components/company/audit'
import Reject from 'components/company/reject'
import Hangup from 'components/company/hangup'
import FollowLine from 'components/followLine/followLine'
import AddLine from 'components/followLine/addLine'
import Agreement from 'components/agreement/agreement'
import DriverTransportDetail from 'components/transport/driverTransportDetail'
import Track from 'components/transport/track'
import MessageList from 'components/mine/messageList'
import MessageSetting from 'components/mine/messageSetting'
import LoadMore from 'components/settlement/loadMore'


Vue.use(Router)

export default new Router({
	routes: [
/*	{
		path: '/',
		redirect:  '/bidding'
	},*/
	{
		path: '/bidding',
		component: biddingList,
		meta: {
	        title: '竞价',
	    }
	},
	{
		path: '/waybillDetail',
		component: WaybillDetail,
		meta: {
	        title: '运单详情'
	    }
	},
	{
		path: '/settlement',
		component: Settlement,
		meta: {
	        title: '结算'
	    }
	},
	{
		path: '/settlementDetail',
		component: SettlementDetail,
		meta: {
	        title: '结算详情'
	    }
	},
	{
		path: '/invoice',
		component: Invoice,
		meta: {
	        title: '发票信息'
	    }
	},
	{
		path: '/transport',
		component: TransportList,
		meta: {
	        title: '运单',
	    }
	},
	{
		path: '/transportDetail',
		component: TransportDetail,
		meta: {
	        title: '运单详情',
	    }
	},
	{
		path: '/dispatch',
		component: Dispatch,
		meta: {
	        title: '运单调度'
	    }
	},
	{
		path: '/mine',
		component: Mine,
		meta: {
	        title: '我的',
	    }
	},
	{
		path: '/aboutUs',
		component: AboutUs,
		meta: {
	        title: '关于我们',
	    }
	},
	{
		path: '/vehicle',
		component: Vehicle,
		meta: {
	        title: '车船管理'
	    }
	},
	{
		path: '/audit',
		component: Audit,
		meta: {
	        title: '公司审核中'
	    }
	},
	{
		path: '/reject',
		component: Reject,
		meta: {
	        title: '公司被驳回'
	    }
	},
	{
		path: '/hangup',
		component: Hangup,
		meta: {
	        title: '公司被挂起'
	    }
	},
	{
		path: '/companyInfo',
		component: CompanyInfo,
		meta: {
	        title: '公司信息'
	    }
	},
	{
		path: '/receipt',
		component: Receipt,
		meta: {
	        title: '回单上传'
	    }
	},
	{
		path: '/receiptUpload',
		component: ReceiptUpload,
		meta: {
	        title: '回单上传'
	    }
	},
	{
		path: '/receiptCarrier',
		component: ReceiptCarrier,
		meta: {
	        title: '回单上传'
	    }
	},
	{
		path: '/followLine',
		component: FollowLine,
		meta: {
	        title: '关注线路'
	    }
	},
	{
		path: '/addLine',
		component: AddLine,
		meta: {
	        title: '新增关注'
	    }
	}
	,
	 {
	    path: '/invoicing',
	    component: Invoice,
	    meta: {
	      title: '发票',
	    }
	  }
	  ,
	  {
	    path: '/agreement',
	    component: Agreement,
	    meta: {
	      title: '注册协议',
	    }
	  }
	  ,
	 {
		path: '/driverTransportDetail',
		component: DriverTransportDetail,
		meta: {
	        title: '运单详情',
	    }
	 }
	  ,
	 {
		path: '/track',
		component: Track,
		meta: {
	        title: '物流跟踪',
	    }
	 }
	  ,
	 {
		path: '/messageList',
		component: MessageList,
		meta: {
	        title: '消息列表',
	    }
	 }
	  ,
	 {
		path: '/messageSetting',
		component: MessageSetting,
		meta: {
	        title: '消息推送配置',
	    }
	 },
	 {
		 path:'/loadMore',
		 component:LoadMore,
		 meta:{
			 title:'下拉刷新'
		 }
	 }

	]
})
